<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                template="/WEB-INF/template/menu-template.xhtml">s

    <ui:define name="metadata">
        <f:metadata>
            <f:viewParam name="login_failed" value="#{loginBean.loginFailed}" />
            <f:viewAction action="#{loginBean.initLoginPage()}" />
        </f:metadata>
    </ui:define>

    <ui:define name="content">
        <h:form prependId="false">
            <p:messages globalOnly="true" />
            <h:panelGrid columns="2">
                <p:outputLabel for="username" value="Username: " />
                <p:inputText id="username" />

                <p:outputLabel for="password" value="Password: " />
                <p:password id="password" />

                <h:panelGroup />
                <p:commandButton value="Login" action="#{loginBean.login()}" ajax="false"/>
            </h:panelGrid>
        </h:form>
    </ui:define>
</ui:composition>